﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="NewsCategory.aspx.cs" Inherits="WebUI.AdminSite.News.NewsCategory" %>
<%@ Import Namespace="WebUI.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="width_full">
        <p>Find Category</p>
        <div class="findNewscategory">
            <asp:TextBox ID="txtFindUser" CssClass="inputText" runat="server"></asp:TextBox>
            <asp:Button ID="btnFind" CssClass="buttonSearch" runat="server" Text="Find" />
        </div>
        <asp:GridView ID="grdNewsCategory" CssClass="module width_full" AutoGenerateColumns="False" runat="server">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID">
                <ControlStyle BackColor="#CC99FF" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Name" SortExpression="Name">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("NameVi") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Status" HeaderText="Status" />
                    <asp:TemplateField HeaderText="View Details">
                        <ItemTemplate>
                            <asp:HyperLink ID="hplDetail" runat="server" NavigateUrl='<%# link.ToAdminDetailsNewsCategory("NewsCategoryDetails.aspx", Eval("No").ToString()) %>'
                            Text="Details" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
        </asp:GridView>
        <asp:Button ID="btnCreate" runat="server" CssClass="btnCreateNew" 
                Text="Create New" onclick="btnCreate_Click" />
    </div>
</asp:Content>
